package dao;

import pojo.Employees;
import pojo.Salaries;
import pojo.SalaryDTO;
import util.PageHelper;

import java.util.ArrayList;

public interface ISalaryAdministrationDao {
    //薪酬管理
    //单人薪酬修改(根据薪酬对象,员工id)
    int updateSalary(Salaries salaries,Integer eId);
    //单人薪酬查看(根据员工ID)
    ArrayList<Salaries> selectSalary(Integer eId);
    /*//薪酬总览(动态模糊查询,带分页)
    ArrayList selectSalaries(Salaries salaries, Employees employees, PageHelper pageHelper);*/
    //查询数据数量
    int getTotalCount(Salaries salaries,Employees employees);
    //添加薪酬记录(参数是薪酬对象)
    int insertSalaries(Salaries salaries);
    ArrayList<SalaryDTO> selectSalaries(Salaries salaries, Employees employees, PageHelper pageHelper);
}
